package com.turing.user;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

import com.turing.common.util.JwtUtil;

@SpringBootApplication
@ComponentScan(basePackages = "com.turing")
@EnableFeignClients(basePackages = "com.turing.**")
public class UserApplication {

    public static void main(String[] args) {
        SpringApplication.run(UserApplication.class, args);
    }

    @Bean
    public JwtUtil jwtUtil() {
        return new JwtUtil();
    }

    /*@Bean
    public PrivilegesUtils privilegesUtils() {
        return new PrivilegesUtils();
    }*/

}
